package cn.duli.xianer.service;

import com.qiniu.common.QiniuException;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Map;

public interface FileService {

    /**
     * 多文件上传
     * @param file
     * @return
     * @throws QiniuException
     */
    Map uploadFile(File file) throws QiniuException;

    /**
     * 上传单张图片到七牛云
     * @param upFile
     * @return
     */
    String uploadOneFile(MultipartFile upFile);

}



